function ativarLinha() {
	jQuery('.rich-table-row').mouseover(function(){
		jQuery(this).addClass('active-row')}
	);
}

function desativarLinha() {
	jQuery('.rich-table-row').mouseout(function(){
		jQuery(this).removeClass('active-row')}
	);
}

function mostraRespostaWS() {
	var errors = jQuery('#testeWsFormMessages dt.error');
	
	if (errors.length == 0) {
		RichFaces.switchTab('testeWsForm:tabPanelId',
							'testeWsForm:tabResposta',
							'testeWsForm:tabResposta');
	}
}

function openLink(linkId, showXml) {
	link = document.getElementById(linkId)
	show = document.getElementById(showXml)
	if (link.target.length == 0) {
		window.open(link.href);
	} else if (show.value == 'true'){
		window.open(link.href, link.target);
	}
}